<?php

namespace App\Models\Admin;

use Illuminate\Database\Eloquent\Model;

/**
 * Class DefaultArticleClass
 */
class ArticleClass extends Model
{
    protected $table = 'article_class';

    protected $primaryKey = 'class_id';

	public $timestamps = true;

    protected $fillable = [
        'class_name',
        'class_sort',
        'class_keyword'
    ];

    protected $guarded = [];

    /**
     * @param \DateTime|int $value
     * @return false|int
     * @author dividez
     */
    public function fromDateTime($value){
        return strtotime(parent::fromDateTime($value));
    }
        
}